package com.pand.model.user;

import com.pand.model.BaseObject;

import javax.persistence.*;

/**
 * 
 * @ClassName: Menu 
 * @Description: 菜单表
 *
 */
@Entity
@Table(name = "SYS_MENU")
@SequenceGenerator(name = "SeqMenu", sequenceName = "SEQ_MENU", allocationSize = 1)
public class Menu extends BaseObject{
	
	/** 
	 * @Fields serialVersionUID : 
	 */ 
	private static final long serialVersionUID = 1L;
	
	/**
	 * 主键
	 */
	private Long id;

	/**
	 * 菜单别名
	 */
	private String mid;
	
	/**
	 * 菜单名称
	 */
	private String name;
	
	/**
	 * 菜单访问地址
	 */
	private String url;
	
	/**
	 * 父id
	 */
	private String parentid;
	
	/**
	 * 级别
	 */
	private int level;
	
	/**
	 * 菜单描述
	 */
	private int mdesc;
	
	/**
	 * 组件id
	 */
	private Long moduleId;
	
	/**
	 * 菜单类型
	 */
	private String mtype;
	
	@Column(name = "M_TYPE")
	public String getMtype() {
		return mtype;
	}
	public void setMtype(String mtype) {
		this.mtype = mtype;
	}
	@Column(name = "MID")
	public String getMid() {
		return mid;
	}
	public void setMid(String mid) {
		this.mid = mid;
	}
	
	@Column(name = "MODULE_ID")
	public Long getModuleId() {
		return moduleId;
	}
	public void setModuleId(Long moduleId) {
		this.moduleId = moduleId;
	}
	@Id
	@GeneratedValue(generator = "SeqMenu")
	@Column(name = "ID")
	public Long getId() {
		return id;
	}
	public void setId(Long id) {
		this.id = id;
	}
	
	@Column(name = "M_NAME")
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	
	@Column(name = "M_URL")
	public String getUrl() {
		return url;
	}
	public void setUrl(String url) {
		this.url = url;
	}
	
	@Column(name = "PARENT_MID")
	public String getParentid() {
		return parentid;
	}
	public void setParentid(String parentid) {
		this.parentid = parentid;
	}
	
	@Column(name = "M_LEVEL")
	public int getLevel() {
		return level;
	}
	public void setLevel(int level) {
		this.level = level;
	}
	
	@Column(name = "M_DESC")
	public int getMdesc() {
		return mdesc;
	}
	public void setMdesc(int mdesc) {
		this.mdesc = mdesc;
	}
	
	
	

}
